﻿//Copyright (c) Microsoft Corporation.  All rights reserved.

using Microsoft.Ted.Wacel;

namespace Microsoft.Ted.Wacel.TableStorage
{
    public class Queue<T>: Base.Queue<T>
    {
        public Queue(string name, string connectionString)
            :this(name, long.MaxValue-1, connectionString)
        {
        }
        public Queue(string name, long maxLength, string connectionString)
            : base(name, maxLength, 
                new TableStorageDataProvider<T>(connectionString, name) {Configuration = new TableStorageConfiguration()},
                new TableStorageLockProvider(connectionString, name))
        {

        }
    }
}
